package com.industrial.im.controller;


import com.industrial.common.core.web.domain.AjaxResult;
import com.industrial.im.domain.DispatchKeyItemManagementSchedule;
import com.industrial.im.service.IDispatchKeyItemManagementSchedulerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/item/scheduler")
public class DispatchKeyItemManagementSchedulerController {

    @Autowired
    private IDispatchKeyItemManagementSchedulerService dispatchKeyItemManagementSchedulerService;

    /**
     * <p>
     *     保存工作进度信息
     * </p>
     * @param params
     * @return
     */
    @PostMapping("/addScheduler")
    public AjaxResult addScheduler(@RequestBody DispatchKeyItemManagementSchedule params){
        dispatchKeyItemManagementSchedulerService.addScheduler(params);
        return AjaxResult.success();
    }

}
